import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [

  {
    path: '/father',
    name: 'father',
    component: () => import('../views/father/index.vue')
  },
  {
    path: '/brother',
    name: 'brother',
    component: () => import('../views/brother/index.vue')
  },
  {
    path: '/list',
    name: 'list',
    component: () => import('../views/list/index.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
